package d6_singleInstance;

public class Test1 {
    public static void main(String[] args) {
//        A a = new A();//无法在外部创建单例对象
        A a1 = A.getObject();
        A a2 = A.getObject(); //a1和a2指向同一个对象
    }
}
